package org.example.exp2.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @author junchao
 * @version V1.0
 * Copyright (c) 2024, zhoujunchao@csu.edu.com All Rights Reserved.
 * @ProjectName:exp2_mybatis_plus
 * @Title: BorrowRecord
 * @Package org.example.exp2.entity
 * @Description:
 * @date 2024/11/25 9:15
 */

@Getter
@Setter
@Accessors(chain = true)
@TableName("borrowrecord")
@ApiModel(value = "BorrowRecord对象",description = "")
public class BorrowRecord implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "recordId", type = IdType.AUTO)
    private int recordId;

    @TableField("personId")
    private int personId;

    @TableField("bookId")
    private int bookId;

    @TableField("borrowDate")
    private String borrowDate;

    @TableField("returnDate")
    private String returnDate;
}